#include <iostream>
#include <stdio.h>

using namespace std;

struct s{
    int a;
    int b;
    char c;
}d[1000000];
int n;
int main() {
    cin >> n;
    for(int i = 0; i < n; i++){
        scanf("%d %d %c",&d[i].a,&d[i].b,&d[i].c);
    }
    for(int i = 0; i < n; i++){
        printf("%d %d %c\n",d[i].a,d[i].b,d[i].c);
    }
    return 0;
}